package com.cn.laoluobase.controller.demo;

import com.cn.laoluobase.entity.App;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("/annotate")
public class Annotate {

    @Resource
    App app;
    @GetMapping("/bean")
    public String bean(){
        app.setName("aa");
        System.out.println("app:"+app.getName());
        return "OK";
    }

}
